<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <script src="/static/layuimini/js/jquery.min.js"></script>
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form">
    <div class="layui-form-item" style="display:none;">
        <label class="layui-form-label required">ID</label>
        <div class="layui-input-block">
            <input type="text" id="id" name="id"
                   value="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">账户所属</label>
        <div class="layui-input-inline">
            <select name="belongToAccount"  id="belongToAccount">
                <option disabled>请选择一个账户</option>
                <!--                <option value="">全部</option>&ndash;&gt;-->
                <!--                                    <option value="010">北京</option>-->
                <!--                                    <option value="021">上海</option>-->
                <!--                                    <option value="0571">杭州</option>-->
            </select>
        </div>

    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">栽培年份</label>
        <div class="layui-input-block">
            <input type="text" id="zaiPeiNianFen" name="zaiPeiNianFen" lay-verify="required"   lay-reqtext="栽培年份不能为空"
                   value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">土壤和前作</label>
        <div class="layui-input-block">
            <input type="text" id="tuRangQianZuo" name="tuRangQianZuo"    value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">耕地与征地</label>
        <div class="layui-input-block">
            <input type="text" id="gengDiZhengDi" name="gengDiZhengDi"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">播种期</label>
        <div class="layui-input-block">
            <input type="text" id="boZhongQi" name="boZhongQi"  value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">移苗期</label>
        <div class="layui-input-block">
            <input type="text" id="yiMiaoQi" name="yiMiaoQi"   value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">间苗期</label>
        <div class="layui-input-block">
            <input type="text" id="jianMiaoQi" name="jianMiaoQi"   value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">定苗期</label>
        <div class="layui-input-block">
            <input type="text" id="dingMiaoQi" name="dingMiaoQi"   value="" class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第1次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao01" name="zhongGengChuCao01"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第2次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao02" name="zhongGengChuCao02"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第3次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao03" name="zhongGengChuCao03"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第4次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao04" name="zhongGengChuCao04"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第5次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao05" name="zhongGengChuCao05"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第6次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao06" name="zhongGengChuCao06"   value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第7次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao07" name="zhongGengChuCao07"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第8次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao08" name="zhongGengChuCao08"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第9次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao09" name="zhongGengChuCao09"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第10次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao10" name="zhongGengChuCao10"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第11次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao11" name="zhongGengChuCao11"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">中耕除草第12次</label>
        <div class="layui-input-block">
            <input type="text" id="zhongGengChuCao12" name="zhongGengChuCao12"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">培土期</label>
        <div class="layui-input-block">
            <input type="text" id="peituqi" name="peituqi"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--基肥</label>
        <div class="layui-input-block">
            <input type="text" id="jiFei" name="jiFei"   value=""
                   class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--追肥第1次日期</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFeiDate1" name="zhuiFeiDate1"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--基肥</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFei1" name="zhuiFei1"   value=""
                   class="layui-input ">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--追肥第2次日期</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFeiDate2" name="zhuiFeiDate2"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--基肥</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFei2" name="zhuiFei2"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--追肥第3次日期</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFeiDate3" name="zhuiFeiDate3"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--基肥</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFei3" name="zhuiFei3"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--追肥第4次日期</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFeiDate4" name="zhuiFeiDate4"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">施肥--基肥</label>
        <div class="layui-input-block">
            <input type="text" id="zhuiFei4" name="zhuiFei4"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第1次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai1" name="guanGai1"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第2次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai2" name="guanGai2"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第3次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai3" name="guanGai3"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第4次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai4" name="guanGai4"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第5次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai5" name="guanGai5"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第6次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai6" name="guanGai6"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第7次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai7" name="guanGai7"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第8次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai8" name="guanGai8"   value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">灌溉第9次</label>
        <div class="layui-input-block">
            <input type="text" id="guanGai9" name="guanGai9"   value=""   class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">整枝第1次</label>
        <div class="layui-input-block">
            <input type="text" id="zhengZhi1" name="zhengZhi1"   value="" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">整枝第2次</label>
        <div class="layui-input-block">
            <input type="text" id="zhengZhi2" name="zhengZhi2"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">整枝第3次</label>
        <div class="layui-input-block">
            <input type="text" id="zhengZhi3" name="zhengZhi3"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">打顶</label>
        <div class="layui-input-block">
            <input type="text" id="daDing" name="daDing"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第1次日期</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhiDate1" name="bingChongFangZhiDate1"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第1次</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhi1" name="bingChongFangZhi1"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第2次日期</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhiDate2" name="bingChongFangZhiDate2"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第2次</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhi2" name="bingChongFangZhi2"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第3次日期</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhiDate3" name="bingChongFangZhiDate3"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第3次</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhi3" name="bingChongFangZhi3"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第4次日期</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhiDate4" name="bingChongFangZhiDate4"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第4次</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhi4" name="bingChongFangZhi4"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第5次日期</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhiDate5" name="bingChongFangZhiDate5"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第5次</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhi5" name="bingChongFangZhi5"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第6次日期</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhiDate6" name="bingChongFangZhiDate6"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">病虫防止第6次</label>
        <div class="layui-input-block">
            <input type="text" id="bingChongFangZhi6" name="bingChongFangZhi6"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第1次日期</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiaoDate1" name="huaTiaoDate1"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第1次</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiao1" name="huaTiao1"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第2次日期</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiaoDate2" name="huaTiaoDate2"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第2次</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiao2" name="huaTiao2"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第3次日期</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiaoDate3" name="huaTiaoDate3"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第3次</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiao3" name="huaTiao3"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第4次日期</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiaoDate4" name="huaTiaoDate4"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">化调第4次</label>
        <div class="layui-input-block">
            <input type="text" id="huaTiao4" name="huaTiao4"   value=""
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">收花期第1次</label>
        <div class="layui-input-block">
            <input type="text" id="shouHuaQi1" name="shouHuaQi1"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">收花期第2次</label>
        <div class="layui-input-block">
            <input type="text" id="shouHuaQi2" name="shouHuaQi2"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">收花期第3次</label>
        <div class="layui-input-block">
            <input type="text" id="shouHuaQi3" name="shouHuaQi3"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">霜降期--初霜</label>
        <div class="layui-input-block">
            <input type="text" id="sjqChuShuang" name="sjqChuShuang"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">霜降期--枯霜</label>
        <div class="layui-input-block">
            <input type="text" id="sjqKuShuang" name="sjqKuShuang"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">秋耕</label>
        <div class="layui-input-block">
            <input type="text" id="qiuGeng" name="qiuGeng"   value=""
                     class="layui-input my_class_name" placeholder="yyyy-MM-dd">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label required">备注</label>
        <div class="layui-input-block">
            <input type="text" id="mark" name="mark"   value=""
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>





<script src="../../lib/layui-v/layui.js" charset="utf-8"></script>
<script>

    layui.use(['form','laydate'], function () {
        var form = layui.form,
            layer = layui.layer,
            laydate = layui.laydate,
            $ = layui.$;
        //日期
        $('.my_class_name').each(function() {
            laydate.render({
                elem: this       //使用this指向当前元素,不能使用class名, 否则只有第一个有效
            });
        })

        //监听提交
        form.on('submit(saveBtn)', function (data) {
            $.ajax({
                url: '/tZpglsjs/update',
                data: JSON.stringify(data.field),
                contentType: "application/json;charset=utf-8",
                dataType: 'json',
                type: "post",
                async: false,//false为同步，这个Ajax请求将整个浏览器锁死
                success: function (d) {
                    if (d.msg == 1) {
                        layer.msg("修改成功", {icon: 6});
                        window.parent.location.reload();//修改成功后刷新父界面
                    } else {
                        layer.msg("修改失败", {icon: 5});
                    }
                }
            })
            var iframeIndex = parent.layer.getFrameIndex(window.name);
            parent.layer.close(iframeIndex);
            return false;
        });

    });
    $(document).ready(function () {
        $.ajax({
            type:"get",
            url:'/tTeams/myselect',
            success:function(userList){
                if (userList.msg==1){
                    // console.log(userList.data);
                    // alert(userList.data[3].custIndustry);
                    // alert(userList.data.length);
                    var unitObj=document.getElementById("#daddress"); //页面上的<html:select>元素
                    if(userList.data!=null){ //后台传回来的select选项
                        for(var i=0;i<userList.data.length;i++){
                            $("#daddress").append("<option value='" + userList.data[i].username + "'>" + userList.data[i].username + "</option>");
                        }
                        layui.use('form', function () {
                            var form = layui.form;
                            form.render();
                        });
                    }
                }
            }
        })
    })
</script>
</body>
</html>